package com.alibaba.dubbo.demo.provider;

import java.util.List;

import com.alibaba.dubbo.demo.SysUserInfoInterface;
import com.alibaba.dubbo.demo.bean.PageBean;
import com.alibaba.dubbo.demo.bean.SysUserinfo;
import com.alibaba.dubbo.demo.provider.dao.impl.SysUserInfoDaoImpl;

public class SysUserInfoServiceImpl implements SysUserInfoInterface {

	SysUserInfoDaoImpl sysUserInfoDao;
	
	public SysUserInfoDaoImpl getSysUserInfoDao() {
		return sysUserInfoDao;
	}

	public void setSysUserInfoDao(SysUserInfoDaoImpl sysUserInfoDao) {
		this.sysUserInfoDao = sysUserInfoDao;
	}

	@Override
	public PageBean queryAllUserInfo(PageBean pageBean,int upperid,String usercode,String username) {
		// TODO Auto-generated method stub
		return sysUserInfoDao.queryAllUserInfo(pageBean,upperid, usercode, username);
	}

	@Override
	public List<SysUserinfo> queryAllUserInfoList(int upperid,String usercode,String username) {
		// TODO Auto-generated method stub
		return sysUserInfoDao.queryAllUserInfoList(upperid, usercode, username);
	}

	@Override
	public PageBean queryUserInfoByDept(int deptid) {
		// TODO Auto-generated method stub
		return sysUserInfoDao.queryUserInfoByDept(deptid);
	}

	@Override
	public List<SysUserinfo> queryUserInfoListByDept(int deptid) {
		// TODO Auto-generated method stub
		return sysUserInfoDao.queryUserInfoListByDept(deptid);
	}

	@Override
	public SysUserinfo getUserInfoByUserCode(String userCode) {
		// TODO Auto-generated method stub
		return sysUserInfoDao.getUserInfoByUserCode(userCode);
	}

	@Override
	public SysUserinfo getUserInfoByUserName(String userName) {
		// TODO Auto-generated method stub
		return sysUserInfoDao.getUserInfoByUserName(userName);
	}

	@Override
	public boolean saveUserInfo(SysUserinfo userInfo) {
		// TODO Auto-generated method stub
		return sysUserInfoDao.saveUserInfo(userInfo);
	}

	@Override
	public boolean updateUserInfo(SysUserinfo userInfo) {
		// TODO Auto-generated method stub
		return sysUserInfoDao.updateUserInfo(userInfo);
	}

	@Override
	public boolean deleteUserInfo(SysUserinfo userInfo) {
		// TODO Auto-generated method stub
		return sysUserInfoDao.deleteUserInfo(userInfo);
	}

	@Override
	public PageBean queryAllUserDeptInfo(PageBean pageBean, int upperid, String usercode, String username) {
		// TODO Auto-generated method stub
		return sysUserInfoDao.queryAllUserDeptInfo(pageBean, upperid, usercode, username);
	}

	@Override
	public List<SysUserinfo> queryAllUserDeptInfoList(int upperid, String usercode, String username) {
		// TODO Auto-generated method stub
		return sysUserInfoDao.queryAllUserDeptInfoList(upperid, usercode, username);
	}

	@Override
	public PageBean queryAllUserInfo(PageBean pageBean, String usercode, String username, String deptlist) {
		// TODO Auto-generated method stub
		return sysUserInfoDao.queryAllUserInfo(pageBean, usercode, username, deptlist);
	}
}
